package com.ftg.wymall.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ftg.wymall.admin.entity.UmsMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 菜单mapper
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/10/24 下午2:05
 */
@Mapper
public interface UmsMenuMapper extends BaseMapper<UmsMenu> {

    /**
     *  根据用户编号获取当前用户的菜单
     * @param id  编号
     * @return
     */
    List<UmsMenu> showMenuByAdminId(@Param("id") Long id);

}
